package com.luchao.back.mapper;

import com.luchao.back.pojo.Orders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrdersMapper {

    List<Orders> getOrdersByPage(@Param("startNum") int startNum, @Param("pageSize") int pageSize, @Param("ouid") Integer ouid, @Param("ostate") Integer ostate);

    long getOrdersCount(@Param("ouid") Integer ouid, @Param("ostate") Integer ostate);

    int changeOstate(@Param("oid") Integer oid, @Param("ostate") Integer ostate);

    int createOrders(Orders orders);

    Orders getOrdersDetaileById(int oid);

    long checkOrderUseReceives(int orecid);
}
